#ifndef __FLASH_H
#define __FLASH_H

#define STORE_ADDRESS (0x008000+8000)
#define ID_LEN        12

void init_flash(void);
void StoreParams(void);
void FetchParams(void);

typedef struct FlashParamsTypedef
{
	uint8_t stickID[ID_LEN];
	uint8_t mask;
	uint8_t adFlag;
	uint8_t panelKey[6];
	uint8_t panelLock[6];
	uint8_t buttonID;
	uint16_t reportInterval;
	uint32_t vcr;
}FlashParams;


extern FlashParams flashParams;

#endif
